<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自动定位到对应的view文件</title>
</head>
<body>
<script type="text/javascript">
    let count = 0;
    for(let i = 0; i <=100;i++) {
        count += i;
        console.log(i + "|" + count);
    }
    console.log(getParamValue("wd"))
    function getParamValue(name) {
        let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        let r = window.location.search.substr(1).match(reg);
        if (r !== null) return unescape(r[2]);
        return null;
    }

</script>

</body>
</html>